﻿angular.module('starter.uirouter', [])
.config(function ($stateProvider, $urlRouterProvider) {
    // Ionic uses AngularUI Router which uses the concept of states
    // Learn more here: https://github.com/angular-ui/ui-router
    // Set up the various states which the app can be in.
    // Each state's controller can be found in controllers.js
    $stateProvider
    // setup an abstract state for the tabs directive
    //登录页
    .state('model', {
        url: '/model',
        templateUrl: '../../Content/webApp/templates/model.html',
        controller: 'modelCtrl'
    })
    .state('tabs', {
        url: '/tabs',
        templateUrl: '../../Content/webApp/templates/tabs.html',
        controller: 'tabsCtrl'
    });
    // if none of the above states are matched, use this as the fallback
    $urlRouterProvider.otherwise('/model');
});



